// MemberDetailsTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "MemberDetails.h"

int _tmain(int argc, _TCHAR* argv[])
{
	try 
	{
		MemberDetails mem;

		mem.setUserName("Eng.Akram");
		mem.setPassword("123456");
		mem.setFirstName("Akram");
		mem.setSecondName("Ahmed");
		mem.setAddress("El Zahraa");
		mem.setEmail("Eng,akram@outlook.com");
		mem.setCreditCard(987654321);
		mem.setDriverLicenceID(1107172);
		mem.setMovieReserved("al tenen");
		mem.setMovieRented("dvd al tenen");
		mem.setMovieReserved("al tenen 2");
		mem.setMovieRented("dvd al tenen 2");

		cout << mem.getUserName() << endl <<
		mem.getPassword() << endl <<
		mem.getFirstName() << endl <<
		mem.getSecondName() << endl <<
		mem.getAddress() << endl <<
		mem.getEmail() << endl <<
		mem.getCreditCard() << endl <<
		mem.getDriverLicenceID() << endl;
		
		for(int i = 0; i < mem.getReservations().size(); i++)
			cout << mem.getReservations()[i] << endl;

		for(int i = 0; i < mem.getRentals().size(); i++)
			cout << mem.getRentals()[i] << endl;

		cout << endl;
	}

	catch(DesignByContractException & e)
	{
		cout<<(string)e;
	}
	return 0;
}

